<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<jsp:useBean id="navigation" scope="request" type="com.cxx.framework.app.nav.Navigation" />
<%@ page import="java.util.*" pageEncoding="UTF-8" %>

    <script type="text/javascript" src="<c:url value='/common/jquery/jquery-1.10.2.min.js' />"></script>
	<script type="text/javascript" src="<c:url value='/common/easyui/1.3.6/jquery.easyui.min.js' />"></script>
	<script type="text/javascript" src="<c:url value='/common/easyui/1.3.6/locale/easyui-lang-zh_CN.js' />"></script>
	<script type='text/javascript' src="<c:url value='/common/js/jquery.loadmask.min.js' />"></script>
	<script type='text/javascript' src="<c:url value='/common/js/jquery.notification.js' />"></script>
	<script type='text/javascript' src="<c:url value='/common/js/jquery.print.js' />"></script>
	<script type='text/javascript' src="<c:url value='/common/js/jquery.datagrid.detailview.js' />"></script>
	<script type='text/javascript' src="<c:url value='/common/js/jquery.datagrid.groupview.js' />"></script>
    <script>
        try {
			var logoutURL = '<c:url value="/logout"/>';
			var loginURL = '<c:url value="/login.do"/>';
			var logoutIntercept = function() {
				if (logoutURL) {
					window.location.href = logoutURL;
					//window.location.href = loginURL;
				}
			};

		} catch (ex) {
			window.console && console.info(ex);
		}
		
		var addTab = function (tabId, title, url)
		{
			var exists = $(tabId).tabs('exists', title);
			if(!exists) 
			{
				$(tabId).tabs('add',{
					title:title,
					href:url,
					closable:true,
					fit:true,
					cls:'tab'
				});
			}
			else 
			{
				$(tabId).tabs('select', title);
			}
		}
    </script>

    <jsp:include page="pc-module.jsp" />
